/**
 * 
 */
package com.toncen.samepms.common;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 描述：属性业务规则标注
 * 
 * @author tch
 * 
 */
@Target( { ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface BusinessRule {

	/**
	 * 属性标题
	 * 
	 * @return
	 */
	public String title();

	/**
	 * 属性名称
	 * 
	 * @return
	 */
	public String name() default "";

	/**
	 * 属性必填业务规则
	 * 
	 * @return
	 */
	public String required() default "true";

	/**
	 * 属性有效业务规则
	 * 
	 * @return
	 */
	public String valided() default "true";

}
